directory_create

This function creates one or more directories.

bool directory_create(string directories)

Parameters:
directories
A list of one or more directories that you wish to create, separated by either slash or backslash.

Return value:
true on success, false on failure.

Remarks:
This function will create a tree with one or more directories. If one or more of the specified new directories already exist, the function will leave these untouched and report success.

Please note that the list of directories may not end in a trailing slash or backslash, and may not contain wildcards.

The directory tree may be specified as either an absolute or a relative path.

Example:
// Create a directory called dummy in the application's current directory, with a sub folder called test inside it.

void main()
{
if(directory_create("dummy\\test")==false)
{
alert("Error", "The directory could not be created.");
}
else
{
alert("Success", "The directory was created successfully.");
}
}